<!DOCTYPE html>
<html>
<head>
    <include file="./public/sty.html"/>
</head>
<body>
<div id="app" class="personalLevel">
    <include file="./public/header.html"/>
    <div data-v-2128f87c="" class="container containerUser fix pt15" s="[object Object]">
        <div class="slideUser">
            <ul class="sildeSession"><h3><span></span>账号管理</h3>
                <li class=""><a href="{:U('Users/personalInfo')}">个人信息</a></li>
                <li class="curr"><a href="{:U('Users/securityCenter')}">安全中心</a></li>
                <li class=""><a href="{:U('Users/manageBankcard2')}">银行卡管理</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>投注管理</h3>
                <li><a href="{:U('Users/BetRecord')}" class="">投注记录</a></li>
                <li><a href="{:U('Users/seekOrder')}" class="">追号记录</a></li>
            </ul>
            <ul class="sildeSession"><h3><span></span>资金管理</h3>
                <li><a href="{:U('Users/BillRecord')}" class="">交易记录</a></li>
                <li class=""><a href="{:U('Users/PLstatement')}">今日盈亏</a></li>
            </ul>
            <?php if($wanjia['utype'] == '1'){ ?>
            <ul class="sildeSession">
                <h3><span></span>代理中心</h3>
                <li><a href="{:U('Users/agentIntro')}" class="">代理说明</a></li>
                <li class=""><a href="{:U('Users/agentReport')}">代理报表</a></li>
                <li><a href="{:U('Users/lowerReport')}" class="">下级报表</a></li>
                <li class=""><a href="{:U('Users/manageInvite')}">下级开户</a></li>
                <li><a href="{:U('Users/agentMember')}" class="">会员管理</a></li>
                <li><a href="{:U('Users/agentBetRecord')}" class="">投注明细</a></li>
                <li><a href="{:U('Users/agentBillRecord')}" class="">交易明细</a></li>
            </ul>
            <?php }?>
            <ul class="sildeSession"><h3><span></span>消息管理</h3>
                <li><a href="{:U('Users/letter')}" class="">站内信</a></li>
                <li><a href="{:U('Users/Notice')}" class="">网站公告</a></li>
            </ul>
        </div>
        <div data-v-2128f87c="" class="userRight">
            <div data-v-2128f87c="" class="userTitle mgb10">个人信息</div>
            <div data-v-2128f87c="" class="userMain mgb10">
              <div data-v-2128f87c="" id="newTab" class="newTab">
                  <a href="{:U('Users/personalInfo',array('id'=>$info['userid']))}" class="" data-v-98161034="">个人资料</a>
                  <a href="{:U('Users/personalLevel',array('id'=>$info['userid']))}" class="curr curr" data-v-98161034="">等级头衔</a>
             </div>
         <form action="{:U('Users/personalLevel')}" method="post" enctype="multipart/form-data" id="form">
             <input type="hidden" name="uid" id="uid" value="{$data.userid}">
                <div data-v-2128f87c="" class="evCall fix tapli">
                    <div data-v-2128f87c="" class="selectHeadImg">
					<img data-v-2128f87c="" src="{$data.avatar}" width="100" height="100" alt="" class="headImg">
                    <a data-v-2128f87c="" class="fx_xg_photos_btn">修改头像</a></div>
                    <ul data-v-2128f87c="" class="evCallInfo">
                        <li data-v-2128f87c=""><em data-v-2128f87c="">账</em>号：<span data-v-2128f87c=""><?php echo $_SESSION['login_name'];?></span>
                        </li>
                        <li data-v-2128f87c=""><em data-v-2128f87c="">等</em>级：
                            <span data-v-2128f87c="">
                              <?php if($data['score'] < '10'){echo 'VIP1';}
                                  elseif('10' <= $data['score'] && $data['score'] < '200'){echo 'VIP2';}
                                  elseif('200' <= $data['score'] && $data['score'] < '1000'){echo 'VIP3';}
                                  elseif('1000' <= $data['score'] && $data['score'] < '10000'){echo 'VIP4';}
                                  elseif('10000' <= $data['score'] && $data['score'] < '50000'){echo 'VIP5';}
                                  elseif('50000' <= $data['score'] && $data['score'] < '250000'){echo 'VIP6';}
                                  elseif('250000' <= $data['score'] && $data['score'] < '1000000'){echo 'VIP7';}
                                  elseif('1000000' <= $data['score'] && $data['score'] < '5000000'){echo 'VIP8';}
                                  elseif('5000000' <= $data['score']){echo 'VIP9';}; ?>
                            </span>
                        </li>
                        <li data-v-2128f87c=""><em data-v-2128f87c="">头</em>衔：<span data-v-2128f87c="">
                            <?php if($data['score'] < '10'){echo '农民';}
                                  elseif('10' <= $data['score'] && $data['score'] < '200'){echo '地主';}
                                  elseif('200' <= $data['score'] && $data['score'] < '1000'){echo '知县';}
                                  elseif('1000' <= $data['score'] && $data['score'] < '10000'){echo '通判';}
                                  elseif('10000' <= $data['score'] && $data['score'] < '50000'){echo '知府';}
                                  elseif('50000' <= $data['score'] && $data['score'] < '250000'){echo '总督';}
                                  elseif('250000' <= $data['score'] && $data['score'] < '1000000'){echo '巡抚';}
                                  elseif('1000000' <= $data['score'] && $data['score'] < '5000000'){echo '丞相';}
                                  elseif('5000000' <= $data['score']){echo '帝王';}; ?>
                        </span></li>
                        <li data-v-2128f87c="">成长值：<span data-v-2128f87c="">
                                   {$data.score}
                        </span></li>
                        <li data-v-2128f87c="" style="color: rgb(153, 153, 153);">每充值1元加1分</li>
                    </ul>
                    <div data-v-2128f87c="" class="levelBar">
					<p data-v-2128f87c="" class="u-progress">
                        <span data-v-2128f87c="" class="pgbar" style="width: {$baifenbi}%;">
                            <span data-v-2128f87c="" class="pging"></span>
                        </span>
                    </p>
                    <em data-v-2128f87c="" class="point">{$baifenbi}%</em>
					<div data-v-2128f87c="" class="levelBarInfo"><em data-v-2128f87c="">
                        <?php if($data['score'] < '10'){echo 'VIP1';}
                                  elseif('10' <= $data['score'] && $data['score'] < '200'){echo 'VIP2';}
                                  elseif('200' <= $data['score'] && $data['score'] < '1000'){echo 'VIP3';}
                                  elseif('1000' <= $data['score'] && $data['score'] < '10000'){echo 'VIP4';}
                                  elseif('10000' <= $data['score'] && $data['score'] < '50000'){echo 'VIP5';}
                                  elseif('50000' <= $data['score'] && $data['score'] < '250000'){echo 'VIP6';}
                                  elseif('250000' <= $data['score'] && $data['score'] < '1000000'){echo 'VIP7';}
                                  elseif('1000000' <= $data['score'] && $data['score'] < '5000000'){echo 'VIP8';}
                                  elseif('5000000' <= $data['score']){echo 'VIP9';}; ?>
                    </em>
					<p data-v-2128f87c="">
					<span data-v-2128f87c="" style="color: rgb(241, 66, 65);">{$data.score}</span>
					/<?php if($data['score'] < '10'){echo '10';}
                                  elseif('10' <= $data['score'] && $data['score'] < '200'){echo '200';}
                                  elseif('200' <= $data['score'] && $data['score'] < '1000'){echo '1000';}
                                  elseif('1000' <= $data['score'] && $data['score'] < '10000'){echo '10000';}
                                  elseif('10000' <= $data['score'] && $data['score'] < '50000'){echo '50000';}
                                  elseif('50000' <= $data['score'] && $data['score'] < '250000'){echo '250000';}
                                  elseif('250000' <= $data['score'] && $data['score'] < '1000000'){echo '1000000';}
                                  elseif('1000000' <= $data['score'] && $data['score'] < '5000000'){echo '5000000';}
                                  elseif('5000000' <= $data['score']){echo '';}; ?> 距离下一级还要
                        <?php if($data['score'] < '10'){echo '10'-$data['score'];}
                                  elseif('10' <= $data['score'] && $data['score'] < '200'){echo '200'-$data['score'];}
                                  elseif('200' <= $data['score'] && $data['score'] < '1000'){echo '1000'-$data['score'];}
                                  elseif('1000' <= $data['score'] && $data['score'] < '10000'){echo '10000'-$data['score'];}
                                  elseif('10000' <= $data['score'] && $data['score'] < '50000'){echo '50000'-$data['score'];}
                                  elseif('50000' <= $data['score'] && $data['score'] < '250000'){echo '250000'-$data['score'];}
                                  elseif('250000' <= $data['score'] && $data['score'] < '1000000'){echo '1000000'-$data['score'];}
                                  elseif('1000000' <= $data['score'] && $data['score'] < '5000000'){echo '5000000'-$data['score'];}
                                  elseif('5000000' <= $data['score']){echo '';}; ?>&nbsp;分</p>
                        <i data-v-2128f87c="">
                            <?php if($data['score'] < '10'){echo 'VIP2';}
                                  elseif('10' <= $data['score'] && $data['score'] < '200'){echo 'VIP3';}
                                  elseif('200' <= $data['score'] && $data['score'] < '1000'){echo 'VIP4';}
                                  elseif('1000' <= $data['score'] && $data['score'] < '10000'){echo 'VIP5';}
                                  elseif('10000' <= $data['score'] && $data['score'] < '50000'){echo 'VIP6';}
                                  elseif('50000' <= $data['score'] && $data['score'] < '250000'){echo 'VIP7';}
                                  elseif('250000' <= $data['score'] && $data['score'] < '1000000'){echo 'VIP8';}
                                  elseif('1000000' <= $data['score'] && $data['score'] < '5000000'){echo 'VIP9';}
                                  elseif('5000000' <= $data['score']){echo '';}; ?>
                        </i></div>
                    </div>
                    <h6 data-v-2128f87c="">等级机制</h6>
                    <table data-v-2128f87c="" width="80%" id="Gradelist">
                        <tbody data-v-2128f87c="">
                        <tr data-v-2128f87c="">
                            <th data-v-2128f87c="">等级</th>
                            <th data-v-2128f87c="">头衔</th>
                            <th data-v-2128f87c="">成长积分</th>
                            <th data-v-2128f87c="">晋级奖励(元)</th>
                            <th data-v-2128f87c="">跳级奖励(元)</th>
                        </tr>
                        <tr data-v-2128f87c="">
                            <td data-v-2128f87c="">VIP1</td>
                            <td data-v-2128f87c="">农民</td>
                            <td data-v-2128f87c="">0</td>
                            <td data-v-2128f87c="">0</td>
                            <td data-v-2128f87c="">0</td>
                        </tr>
                        <tr data-v-2128f87c="">
                            <td data-v-2128f87c="">VIP2</td>
                            <td data-v-2128f87c="">地主</td>
                            <td data-v-2128f87c="">10</td>
                            <td data-v-2128f87c="">1</td>
                            <td data-v-2128f87c="">1</td>
                        </tr>
                        <tr data-v-2128f87c="">
                            <td data-v-2128f87c="">VIP3</td>
                            <td data-v-2128f87c="">知县</td>
                            <td data-v-2128f87c="">200</td>
                            <td data-v-2128f87c="">5</td>
                            <td data-v-2128f87c="">6</td>
                        </tr>
                        <tr data-v-2128f87c="">
                            <td data-v-2128f87c="">VIP4</td>
                            <td data-v-2128f87c="">通判</td>
                            <td data-v-2128f87c="">1000</td>
                            <td data-v-2128f87c="">10</td>
                            <td data-v-2128f87c="">16</td>
                        </tr>
                        <tr data-v-2128f87c="">
                            <td data-v-2128f87c="">VIP5</td>
                            <td data-v-2128f87c="">知府</td>
                            <td data-v-2128f87c="">10000</td>
                            <td data-v-2128f87c="">58</td>
                            <td data-v-2128f87c="">74</td>
                        </tr>
                        <tr data-v-2128f87c="">
                            <td data-v-2128f87c="">VIP6</td>
                            <td data-v-2128f87c="">总督</td>
                            <td data-v-2128f87c="">50000</td>
                            <td data-v-2128f87c="">318</td>
                            <td data-v-2128f87c="">392</td>
                        </tr>
                        <tr data-v-2128f87c="">
                            <td data-v-2128f87c="">VIP7</td>
                            <td data-v-2128f87c="">巡抚</td>
                            <td data-v-2128f87c="">250000</td>
                            <td data-v-2128f87c="">1688</td>
                            <td data-v-2128f87c="">2080</td>
                        </tr>
                        <tr data-v-2128f87c="">
                            <td data-v-2128f87c="">VIP8</td>
                            <td data-v-2128f87c="">丞相</td>
                            <td data-v-2128f87c="">1000000</td>
                            <td data-v-2128f87c="">6888</td>
                            <td data-v-2128f87c="">8968</td>
                        </tr>
                        <tr data-v-2128f87c="">
                            <td data-v-2128f87c="">VIP9</td>
                            <td data-v-2128f87c="">帝王</td>
                            <td data-v-2128f87c="">5000000</td>
                            <td data-v-2128f87c="">38888</td>
                            <td data-v-2128f87c="">47856</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
           </form>
            </div>
        </div>
        <div data-v-3d78d95d=""  class="fx_xg_photos"   style="display: none;">
            <div data-v-3d78d95d="" class="layerBg"></div>
            <div data-v-3d78d95d="" class="layerBox">
                <div data-v-3d78d95d="" class="headImgList">
                    <div data-v-3d78d95d="" class="headImgListTitle">修改头像 <a data-v-3d78d95d="" class="close"></a></div>
                    <div data-v-3d78d95d="" class="headImgContent">
                        <a data-v-3d78d95d="" title="奥巴马" class=""><img data-v-3d78d95d="" src="/style/images/pimg1.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="比尔盖茨" class=""><img data-v-3d78d95d="" src="/style/images/pimg14.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="本拉登" class=""><img data-v-3d78d95d="" src="/style/images/pimg9.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="普京" class=""><img data-v-3d78d95d="" src="/style/images/pimg22.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="贝克汉姆"class=""><img data-v-3d78d95d="" src="/style/images/pimg15.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="苍井空" class=""><img data-v-3d78d95d="" src="/style/images/pimg25.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="泷泽萝拉" class=""><img data-v-3d78d95d="" src="/style/images/pimg3.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="波多野结衣" class=""><img data-v-3d78d95d="" src="/style/images/pimg23.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="希拉里" class=""><img data-v-3d78d95d=""  src="/style/images/pimg19.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="范冰冰" class=""><img data-v-3d78d95d="" src="/style/images/pimg8.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="小男孩" class="curr"><img data-v-3d78d95d=""  src="/style/images/pimg17.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="小女孩" class=""><img data-v-3d78d95d="" src="/style/images/pimg2.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="李敏镐" class=""><img data-v-3d78d95d="" src="/style/images/pimg12.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="梅西" class=""><img data-v-3d78d95d="" src="/style/images/pimg7.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="罗纳尔多" class=""><img data-v-3d78d95d="" src="/style/images/pimg15.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="萨达姆" class=""><img data-v-3d78d95d="" src="/style/images/pimg10.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="金正恩" class=""><img data-v-3d78d95d="" src="/style/images/pimg5.jpg" alt="" class="headImg"></a>
                        <a  data-v-3d78d95d="" title="科比" class=""><img data-v-3d78d95d="" src="/style/images/pimg4.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="全智贤" class=""><img data-v-3d78d95d="" src="/style/images/pimg20.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="林允儿" class=""><img data-v-3d78d95d="" src="/style/images/pimg21.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="宋慧乔" class=""><img data-v-3d78d95d="" src="/style/images/pimg11.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="朴信惠" class=""><img data-v-3d78d95d="" src="/style/images/pimg18.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="宋承宪" class=""><img data-v-3d78d95d="" src="/style/images/pimg16.jpg"  alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="宋仲基" class=""><img data-v-3d78d95d="" src="/style/images/pimg13.jpg" alt="" class="headImg"></a>
                        <a data-v-3d78d95d="" title="杰森斯坦森" class=""><img data-v-3d78d95d="" src="/style/images/pimg6.jpg" alt="" class="headImg"></a>
                    </div>
                    <div data-v-3d78d95d="" class="headImgView"><h5 data-v-3d78d95d="">预览</h5>
                        <p data-v-3d78d95d="">100x100</p>
                        <img data-v-3d78d95d="" src="/style/images/pimg1.jpg" alt="">
                        <input type="hidden" name="imgSrc" id="imgSrc">
                        <input type="hidden" name="imgName">
                        <h5 data-v-3d78d95d="" class="theName" style="color: rgb(83, 168, 241);"></h5>

                        <div data-v-3d78d95d="" class="button">
                            <a data-v-3d78d95d="" class="submitBtn" onclick="sav_inages()">保存头像</a>
                            <a data-v-3d78d95d="" class="submitBtn cancel">取消</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    <include file="./public/footer.html"/>
</div>


<script src="/style/js/jquery.min.js"></script>
<script src="/style/js/fx.js"></script>
<script>
    $(function(){
        personalInfo();
        $(".radio_box").click(function (){
            $(this).addClass("checked").siblings(".radio_box").removeClass("checked");
        })
        $(".fx_xg_photos_btn").click(function(){
            var src = $(this).siblings("img").attr("src");
            $(".headImgView img").attr("src",src);
            $(".fx_xg_photos").show();

        });
        $(".fx_xg_photos .headImg").click(function(){
            var src = $(this).attr("src");
            var tit = $(this).parent("a").attr("title");
            $(".headImgView img").attr("src",src);
            $(".headImgView input[name='imgSrc']").val(src);
            $(".headImgView input[name='imgName']").val(tit);
            $(".theName").text(tit);
        });
        $(".cancel,.close").click(function(){
            $(".fx_xg_photos").hide();
        })
    });
</script>
</body>
</html>

<script>
    function sav_inages(){
        var id = $("#uid").val();
        var images = $("#imgSrc").val();
        $.ajax({
            type: "POST",
            url: "{:U('Users/upd_image')}",
            data: {'id':id,'images':images},
            success: function(dat){
                if(dat==1){
                    window.location.href="{:U('Users/personalInfo')}";
                }
            }
        });
    }
 </script>